From: Pavel Janík Date: Sat, 22 Dec 2001 13:36:12 +0000 (+0000) Subject: (insert-string): Moved from mocklisp.c, reimplemented in Lisp. Obsoleted. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~59628 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=676927b7d8e597a75e23c26db9283d93ac0e882e;p=emacs.git (insert-string): Moved from mocklisp.c, reimplemented in Lisp. Obsoleted. --- diff --git a/lisp/subr.el b/lisp/subr.el index f34db188a0f..c199bee05dc 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -652,6 +652,15 @@ as returned by the `event-start' and `event-end' functions." (make-obsolete 'sref 'aref "20.4") (make-obsolete 'char-bytes "Now this function always returns 1" "20.4") +(defun insert-string (&rest args) + "Mocklisp-compatibility insert function. +Like the function `insert' except that any argument that is a number +is converted into a string by expressing it in decimal." + (dolist (el args) + (insert (if (integerp el) (number-to-string el) el)))) + +(make-obsolete 'insert-string 'insert "21.3") + ;; Some programs still use this as a function. (defun baud-rate () "Obsolete function returning the value of the `baud-rate' variable.